package com.innovation.wjrpc.loader;

import com.innovation.wjrpc.protocol.Peer;
import com.innovation.wjrpc.transport.TransportClient;

import java.util.List;

/**
 * @author innoyiya
 * @date 2021/9/7 18:59
 */
public interface TransportSelector {

    void init(List<Peer> peers, int count, Class<? extends TransportClient> clazz);

    TransportClient select();

    void release(TransportClient transportClient);

    void close();
}
